package com.ht.shortlink.project.common.constant;

/**
 *  短链接 Redis 缓存常量
 */
public class RedisCacheConstant {
    /**
     *  短链接跳转缓存 Key
     */
    public static final String SHORT_LINK_GOTO_KEY = "short-link:goto:%s";
    /**
     *  判断短链接是否存在缓存 key
     */
    public static final String SHORT_LINK_GOTO_IS_NULL_KEY = "short-link:goto-is-null:%s";
    /**
     *  短链接跳转锁前缀 key
     */
    public static final String LOCK_SHORT_LINK_GOTO_KEY = "short-link:lock:goto:%s";
    /**
     * 短链接统计判断是否新用户缓存标识
     */
    public static final String SHORT_LINK_STATS_UV_KEY = "short-link:stats:uv:%s";
    /**
     * 短链接统计判断是否新ip缓存标识
     */
    public static final String SHORT_LINK_STATS_UIP_KEY = "short-link:stats:uip:%s";
    /**
     * 短链接修改分组id锁前缀 Key
     */
    public static final String LOCK_SHORT_LINK_GID_UPDATE_KEY = "short-link:lock:update-gid:%s";
    /**
     *  短链接延迟队列统计 key
     */
    public static final String DELAY_QUEUE_STATS_KEY = "short-link:delay-queue:stats";

    /**
     * 短链接监控消息保存队列 Topic 缓存标识
     */
    public static final String SHORT_LINK_STATS_STREAM_TOPIC_KEY = "short-link:stats-stream";

    /**
     * 短链接监控消息保存队列 Group 缓存标识
     */
    public static final String SHORT_LINK_STATS_STREAM_GROUP_KEY = "short-link:stats-stream:only-group";

    /**
     *  短链接消息队列判断是否处理 Key
     */
    public static final String SHORT_LINK_MESSAGE_QUEUE_PROCESSED_KEY = "short-link:message-queue-processed:%s";
}
